home *** CD-ROM | disk | FTP | other *** search
/ Linear Technology Linearview 1996 / linearview 1996.iso / spice / xcpy2dsc.sav < prev   
Encoding:
Text File  |  1996-07-09  |  4.0 KB  |  135 lines

  1. echo off
  2. cls
  3. rem
  4. rem ------------------------------------------------------------------
  5. rem
  6. rem                          XCPY2DSC.BAT
  7. rem                       Walt Jung 03/12/90
  8. rem
  9. rem This batch file will re-create the LTC macromodel DEMO diskette,
  10. rem with PSPICE intact, on a target disc of your choice.  The new (pre-
  11. rem sumably faster) disc can then then be used for your test simulations.
  12. rem Note:  Either a portion of a hard disc (C: thru G:) or a RAM disc
  13. rem (either with about 1meg) can be used.
  14. rem
  15. rem ------------------------------------------------------------------
  16. rem
  17. rem
  18. if (%1)==() goto telerr
  19. if (%2)==() goto telerr
  20. if (%1)==(b:) goto telerrb
  21. if (%2)==(B:) goto telerrb
  22. :chk1
  23. if (%1)==(a:) goto chk2
  24. if (%1)==(A:) goto chk2
  25. if (%1)==(c:) goto chk2
  26. if (%1)==(C:) goto chk2
  27. if (%1)==(d:) goto chk2
  28. if (%1)==(D:) goto chk2
  29. if (%1)==(e:) goto chk2
  30. if (%1)==(E:) goto chk2
  31. if (%1)==(f:) goto chk2
  32. if (%1)==(F:) goto chk2
  33. if (%1)==(g:) goto chk2
  34. if (%1)==(G:) goto chk2
  35. :chk2
  36. if (%2)==(a:) goto xcpy2dsc
  37. if (%2)==(A:) goto xcpy2dsc
  38. if (%2)==(c:) goto xcpy2dsc
  39. if (%2)==(C:) goto xcpy2dsc
  40. if (%2)==(d:) goto xcpy2dsc
  41. if (%2)==(D:) goto xcpy2dsc
  42. if (%2)==(e:) goto xcpy2dsc
  43. if (%2)==(E:) goto xcpy2dsc
  44. if (%2)==(f:) goto xcpy2dsc
  45. if (%2)==(F:) goto xcpy2dsc
  46. if (%2)==(g:) goto xcpy2dsc
  47. if (%2)==(G:) goto xcpy2dsc
  48. :telerr
  49. rem ------------------------------------------------------------------
  50. rem if this far, all not well. abort with msg above, and note bad drive
  51. rem ------------------------------------------------------------------
  52. cls
  53. echo  
  54. echo  
  55. echo  
  56. echo Sorry, but we need 2 (correct) drives!
  57. echo  
  58. echo        One is the disk (or diskette) where DEMO files are now (source), the
  59. echo        second is the disk (or diskette) where they are to be copied (target).
  60. echo  
  61. echo The syntax to be used is: "XCPY2DSC SOURCE TARGET"
  62. echo  
  63. echo        Re-enter command as "XCPY2DSC A: F:", "XCPY2DSC F: A:", etc
  64. echo        (source= "A:", target= "F:", etc., in first example above,
  65. echo         drives allowed are A:, and C: thru G:.  Note B: is excluded)
  66. echo  
  67. echo  
  68. goto badxt1
  69. :telerrb
  70. rem ------------------------------------------------------------------
  71. rem if come here, drive B: not well..  abort with msg
  72. rem ------------------------------------------------------------------
  73. cls
  74. echo  
  75. echo  
  76. echo  
  77. echo Sorry, but we need 2 (correct) drives, excluding drive B:...
  78. echo  
  79. echo        One is the disk (or diskette) where DEMO files are now (source), the
  80. echo        second is the disk (or diskette) where they are to be copied (target).
  81. echo  
  82. echo The syntax to be used is: "XCPY2DSC SOURCE TARGET"
  83. echo  
  84. echo        Re-enter command as "XCPY2DSC A: F:", "XCPY2DSC F: A:", etc
  85. echo        (source= "A:", target= "F:", etc., in first example above,
  86. echo         drives allowed are A:, and C: thru G:.  Note B: is excluded)
  87. echo  
  88. echo  
  89. :badxt1
  90. goto badxt
  91. rem ------------------------------------------------------------------
  92. rem if/when all is well, we arrive below (at last!)
  93. rem ------------------------------------------------------------------
  94. :xcpy2dsc
  95. echo  
  96. echo  
  97. echo  Please verify BOTH of the two conditions below:
  98. echo  
  99. echo 1) Is the drive %2 ready to accept the DEMO files, and does it
  100. echo have 1meg or more of free space?
  101. echo  
  102. echo 2) Are you right now LOGGED INTO the target DIR, on drive %2?
  103. echo  
  104. echo Displayed below is the target DRIVE\DIR currently logged:
  105. echo  
  106. echo  
  107. chkdsk %2
  108. echo  
  109. echo  
  110. echo If not, hit ^C now to abort, and re-check your setup.
  111. echo If you are now ready, hit the spacebar to copy, ....
  112. echo  
  113. echo (Note: any existing files of same name(s) will be over written.
  114. echo DO use a RAM disc, for highest speed.)
  115. echo  
  116. pause
  117. cls
  118. echo  
  119. echo Now beginning copy of %1 (source) files to %2\ (target)...
  120. echo  
  121. xcopy %1 %2 /e/s
  122. cls
  123. :exitnorm
  124. cls
  125. %2
  126. dir /w
  127. echo  
  128. echo LTC model files and PSpice files now are available on drive %2.
  129. echo To run DEMO, enter "DEMOLTC" now.
  130. echo  
  131. :badxt
  132. :exit
  133.  
  134.  
  135.